<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" layout:decorator="layout/base">
<head>
    <title>发单审核详情</title>
</head>
<body>

<!-- Page header -->
<div class="page-header" layout:fragment="page-header">
    <div class="page-header-content">
        <div class="page-title">
            <h4><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold"
                                                                      th:text="#{web.name}">管理系统</span> - 发单详情</h4>
        </div>
    </div>
</div>
<!-- /page header -->

<!-- Main content -->
<div class="content-wrapper" layout:fragment="content">
    <!-- Table -->
    <div class="panel panel-flat min-panel">
        <div class="panel-heading">
            <h5 class="panel-title text-primary"><i class="icon-list"/>发单详情</h5>
        </div>

        <div class="panel-body">
            <form action="#" id="infoForm" class="form-horizontal">
                <input id="rId" name="id" th:value="${r.id}" type="text" style="display:none"/>

                <div class="form-group">
                    <label class="control-label col-lg-2">标题:</label>
                    <div class="col-lg-10">
                        <input name="title" type="text" placeholder="标题"
                               class="form-control required" disabled="disabled" th:value="${r.title}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">行业:</label>
                    <div class="col-lg-10">
                        <select class="select" name="industry" disabled="disabled">
                            <option th:each="major:${majors}"
                                    th:value="${major.value}"
                                    th:text="${major.name}" th:selected="(${r.industry} == ${major.value})"></option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">风格:</label>
                    <div class="col-lg-10">
                        <select class="select" name="style" disabled="disabled">
                            <option th:each="style:${styles}"
                                    th:value="${style.value}"
                                    th:text="${style.name}" th:selected="(${r.style} == ${style.value})"></option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">面积:</label>
                    <div class="col-lg-10">
                        <input name="size" type="number" placeholder="面积(平米)"
                               class="form-control required"
                               number="true" maxlength="20" disabled="disabled" th:value="${r.size}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">预算:</label>
                    <div class="col-lg-10">
                        <input name="budget" type="text" placeholder="预算金额"
                               class="form-control required"
                               maxlength="20" disabled="disabled" th:value="${r.budget}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">QQ:</label>
                    <div class="col-lg-10">
                        <input name="qq" type="text" placeholder="QQ" class="form-control required"
                               number="true" maxlength="11" disabled="disabled" th:value="${r.qq}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">微信:</label>
                    <div class="col-lg-10">
                        <input name="weixin" type="text" placeholder="微信" class="form-control required"
                               maxlength="11" disabled="disabled" th:value="${r.weixin}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">地区:</label>
                    <div class="col-lg-2">
                        <input name="province" type="text" placeholder="省份"
                               class="form-control required"
                               maxlength="11" disabled="disabled" th:value="${r.province}"/>
                    </div>
                    <div class="col-lg-2">
                        <input name="city" type="text" placeholder="省份" class="form-control required"
                               maxlength="11" disabled="disabled" th:value="${r.city}"/>
                    </div>
                    <div class="col-lg-2">
                        <input name="district" type="text" placeholder="省份"
                               class="form-control required"
                               maxlength="11" disabled="disabled" th:value="${r.district}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">发单人:</label>
                    <div class="col-lg-10">
                        <input name="ownerName" type="text" placeholder="发单人" class="form-control required"
                               maxlength="11" disabled="disabled" th:value="${r.ownerName}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">发单时间:</label>
                    <div class="col-lg-10">
                        <input name="createTime" type="text" placeholder="发单时间" class="form-control required"
                               maxlength="20" disabled="disabled" th:value="${#dates.format(r.createTime,'yyyy-MM-dd HH:mm:ss')}"/>
                    </div>
                </div>

                <div class="form-group" th:if="${#lists.size(uploads) > 0}">
                    <label class="control-label col-lg-2">发单附件:</label>
                    <div class="col-lg-10">
                        <a th:each="u:${uploads}" th:href="@{/{url}(url=${u.url})}" target="_blank"><span th:text="${u.fileName}"></span></a>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">定金</label>
                    <div class="col-lg-10">
                        <input name="deposits" type="number" placeholder="定金" class="form-control required" number="true"
                               maxlength="11" th:value="${r.deposits}" disabled="disabled"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">描述:</label>
                    <div class="col-lg-10">
                        <textarea name="description" rows="5" class="form-control" maxlength="150"
                                  placeholder="备注描述" disabled="disabled" th:inline="text">[[${r.description}]]</textarea>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-lg-2">价格<span class="text-danger">*</span></label>
                    <div class="col-lg-10">
                        <input name="price" type="number" placeholder="确认价格，不少于定金" class="form-control required" number="true"
                               maxlength="11" th:value="${r.price}"/>
                    </div>
                </div>


                <div class="modal-footer">
                    <button type="button" id="examPick" class="btn btn-success exam">通过并接单</button>
                    <button type="button" id="examPass" class="btn btn-primary exam">通过</button>
                    <button type="button" id="examRefuse" class="btn btn-warning exam">拒绝</button>
                    <a href="#" th:href="@{/requirement/exam}" class="btn btn-default">返回</a>
                </div>
            </form>
        </div>
    </div>
    <script type="text/javascript" th:src="@{/oss/js/requirement/examDetail.js}"></script>
</div>
<!-- /main content -->

</body>
</html>